
component accessors="true" output="false" extends="AbsDelegate"
{

	property name="SettingFactory" type="it.millemultimedia.easyBlog.factory.SettingFactory";

	public it.millemultimedia.easyBlog.delegate.SettingDelegate function init( required Any dataObject ){
		
		variables.dataObject = arguments.dataObject;
		
		return this;
	}
	
	public it.millemultimedia.easyBlog.validator.SettingValidator function getValidator(){
		
		return getSettingFactory().getValidator();
	}
	
	public it.millemultimedia.easyBlog.model.Setting function createInstance(){
		
		return getSettingFactory().createInstance();
	}

	public void function create( required Any Setting ){
		
		variables.dataObject.create( argumentCollection=arguments );
		
	}

	public void function update( required Any Setting ){
		
		variables.dataObject.update( argumentCollection=arguments );
		
	}

	public it.millemultimedia.easyBlog.model.Setting function read( required Any Setting ){
	
		var list = "";
		var Settings = variables.dataObject.read( arguments.Setting );
		
		Setting = getSettingFactory().get( Settings );
		
		
		return Setting;
		
	}

	public void function delete( required Any Setting ){
		
		variables.dataObject.delete( argumentCollection=arguments );
		
	}

	public it.millemultimedia.easyBlog.model.Setting[] function list( required Any Setting, Numeric start=0, Numeric count=0 ){
	
		var list = "";
		var Settings = variables.dataObject.list( arguments.Setting );
		
		list = getSettingFactory().list( Settings, arguments.start, arguments.count );
		
		
		return list;
		
	}

}


